function fnPrev(curRownum) {
    var vTotalRow = document.main_form.txtTotalRow.value
    document.main_form.hidTotalRow.value = vTotalRow;
    var vPrevRow;
    if ((curRownum - 1) < 1) {
        vPrevRow = 1;
    } else {
        vPrevRow = curRownum - 1;
    }
    document.main_form.hidRownum.value = vPrevRow;
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/getBrgByRownum.php';
    document.main_form.submit();
}
function fnNext(curRownum) {
    var vTotalRow = document.main_form.txtTotalRow.value
    document.main_form.hidTotalRow.value = vTotalRow;
    var vNextRow;
    if ((curRownum + 1) > vTotalRow) {
        vNextRow = vTotalRow;
    } else {
        vNextRow = curRownum + 1;
    }
    document.main_form.hidRownum.value = vNextRow;
    document.main_form.method = 'POST';
    document.main_form.action = 'logic/getBrgByRownum.php';
    document.main_form.submit();
}
function fnHome(curRownum) {
    var vTotalRow = document.main_form.txtTotalRow.value
    document.main_form.hidTotalRow.value = vTotalRow;
    document.main_form.hidRownum.value = curRownum;
    document.main_form.method = 'POST';
    document.main_form.action = 'catalog.php';
    document.main_form.submit();
}